package main

import (
	"IteratorPattern/DysList"
	"fmt"
)

func main() {
	var myList = DysList.DysList[int32]{nil}
	myList.Add(1)
	myList.Add(2)
	myList.Add(3)
	myList.Add(4)
	fmt.Printf("size of List:%d\n", myList.Size())
	var listIterator = myList.GetIterator()
	for listIterator.HasNext() {
		fmt.Println(*listIterator.Next())
	}
}
